package com.woniuxy.cloud.carl.marketing.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分记录表
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_score_log")
public class ScoreLog implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 积分记录id
     */
    @TableId(value = "score_log_id", type = IdType.AUTO)
    private Long scoreLogId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 积分商品id
     */
    private Long scoreMallGoodsId;

    /**
     * 积分
     */
    private Long score;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 记录原因：0.兑换 1.消费
     */
    private Integer reason;


}
